<template>
  <div class="empty-box">
    <img src="./assets/svg/no-data.svg" />
    <div class="empty">{{ emptyText }}</div>
  </div>
</template>

<script>
export default {
  name: 'DproEmpty',
  props: {
    emptyText: {
      type: String,
      default: '暂无数据'
    }
  }
};
</script>

<style lang="less" scoped>
.empty-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;

  img {
    width: 54px;
  }

  .empty {
    font-size: 16px;
    color: var(--disable-text, rgba(255,255,255,0.5));
  }
}
</style>
